package com.museum;

import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

/**
 * @author Akihi
 * @create 2022/12/09
 */
@SpringBootTest
public class test {

    @Test
    public void test1() {
        BCryptPasswordEncoder bCryptPasswordEncoder = new BCryptPasswordEncoder();
        // 密码加密
        String pass = bCryptPasswordEncoder.encode("111111");
        System.out.println(pass);
    }
}
